import React from 'react';
import ReactDOM from 'react-dom';
import './index.css'
import CustomInput from '../../componts/customInput'

function Hooks(props){
	  return (
	  <div>
	  {/* 用户可正常进行输入框值的变更 */}
	  <CustomInput maxLength={10} defaultValue="hello" />
	  {/* 因未传入 onchange 处理函数，用户无法进行输入框值的变更 */}
	  <CustomInput maxLength={10} value="hello" />
	  
	  </div>
	  		
	  );
}

export default Hooks